package com.zhonghui.modlules.cart.eshopVo;

import com.zhonghui.common.eshopVo.StoreProductQueryVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(
        value = "YxStoreCartQueryVo对象",
        description = "购物车表查询参数"
)
public class StoreCartQueryVo  implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("购物车表ID")
    private Long id;
    @ApiModelProperty("用户ID")
    private Long uid;
    @ApiModelProperty("类型")
    private String type;
    @ApiModelProperty("商品ID")
    private Long productId;
    @ApiModelProperty("商品属性")
    private String productAttrUnique;
    @ApiModelProperty("商品数量")
    private Integer cartNum;
    @ApiModelProperty("拼团id")
    private Long combinationId;
    @ApiModelProperty("秒杀产品ID")
    private Long seckillId;
    @ApiModelProperty("砍价id")
    private Long bargainId;
    @ApiModelProperty("商品信息")
    private StoreProductQueryVo productInfo;
    @ApiModelProperty("成本价")
    private Double costPrice;
    @ApiModelProperty("真实价格")
    private Double truePrice;
    @ApiModelProperty("真实库存")
    private Integer trueStock;
    @ApiModelProperty("vip真实价格")
    private Double vipTruePrice;
    @ApiModelProperty("唯一id")
    private String unique;
    @ApiModelProperty("是否评价")
    private Integer isReply;

    public StoreCartQueryVo() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getUid() {
        return this.uid;
    }

    public String getType() {
        return this.type;
    }

    public Long getProductId() {
        return this.productId;
    }

    public String getProductAttrUnique() {
        return this.productAttrUnique;
    }

    public Integer getCartNum() {
        return this.cartNum;
    }

    public Long getCombinationId() {
        return this.combinationId;
    }

    public Long getSeckillId() {
        return this.seckillId;
    }

    public Long getBargainId() {
        return this.bargainId;
    }

    public Object getProductInfo() {
        return this.productInfo;
    }

    public Double getCostPrice() {
        return this.costPrice;
    }

    public Double getTruePrice() {
        return this.truePrice;
    }

    public Integer getTrueStock() {
        return this.trueStock;
    }

    public Double getVipTruePrice() {
        return this.vipTruePrice;
    }

    public String getUnique() {
        return this.unique;
    }

    public Integer getIsReply() {
        return this.isReply;
    }

    public void setId(final Long id) {
        this.id = id;
    }

    public void setUid(final Long uid) {
        this.uid = uid;
    }

    public void setType(final String type) {
        this.type = type;
    }

    public void setProductId(final Long productId) {
        this.productId = productId;
    }

    public void setProductAttrUnique(final String productAttrUnique) {
        this.productAttrUnique = productAttrUnique;
    }

    public void setCartNum(final Integer cartNum) {
        this.cartNum = cartNum;
    }

    public void setCombinationId(final Long combinationId) {
        this.combinationId = combinationId;
    }

    public void setSeckillId(final Long seckillId) {
        this.seckillId = seckillId;
    }

    public void setBargainId(final Long bargainId) {
        this.bargainId = bargainId;
    }

    public void setProductInfo(final StoreProductQueryVo productInfo) {
        this.productInfo = productInfo;
    }

    public void setCostPrice(final Double costPrice) {
        this.costPrice = costPrice;
    }

    public void setTruePrice(final Double truePrice) {
        this.truePrice = truePrice;
    }

    public void setTrueStock(final Integer trueStock) {
        this.trueStock = trueStock;
    }

    public void setVipTruePrice(final Double vipTruePrice) {
        this.vipTruePrice = vipTruePrice;
    }

    public void setUnique(final String unique) {
        this.unique = unique;
    }

    public void setIsReply(final Integer isReply) {
        this.isReply = isReply;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof StoreCartQueryVo)) {
            return false;
        } else {
            StoreCartQueryVo other = (StoreCartQueryVo)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label203: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label203;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label203;
                    }

                    return false;
                }

                Object this$uid = this.getUid();
                Object other$uid = other.getUid();
                if (this$uid == null) {
                    if (other$uid != null) {
                        return false;
                    }
                } else if (!this$uid.equals(other$uid)) {
                    return false;
                }

                Object this$productId = this.getProductId();
                Object other$productId = other.getProductId();
                if (this$productId == null) {
                    if (other$productId != null) {
                        return false;
                    }
                } else if (!this$productId.equals(other$productId)) {
                    return false;
                }

                label182: {
                    Object this$cartNum = this.getCartNum();
                    Object other$cartNum = other.getCartNum();
                    if (this$cartNum == null) {
                        if (other$cartNum == null) {
                            break label182;
                        }
                    } else if (this$cartNum.equals(other$cartNum)) {
                        break label182;
                    }

                    return false;
                }

                label175: {
                    Object this$combinationId = this.getCombinationId();
                    Object other$combinationId = other.getCombinationId();
                    if (this$combinationId == null) {
                        if (other$combinationId == null) {
                            break label175;
                        }
                    } else if (this$combinationId.equals(other$combinationId)) {
                        break label175;
                    }

                    return false;
                }

                label168: {
                    Object this$seckillId = this.getSeckillId();
                    Object other$seckillId = other.getSeckillId();
                    if (this$seckillId == null) {
                        if (other$seckillId == null) {
                            break label168;
                        }
                    } else if (this$seckillId.equals(other$seckillId)) {
                        break label168;
                    }

                    return false;
                }

                Object this$bargainId = this.getBargainId();
                Object other$bargainId = other.getBargainId();
                if (this$bargainId == null) {
                    if (other$bargainId != null) {
                        return false;
                    }
                } else if (!this$bargainId.equals(other$bargainId)) {
                    return false;
                }

                label154: {
                    Object this$costPrice = this.getCostPrice();
                    Object other$costPrice = other.getCostPrice();
                    if (this$costPrice == null) {
                        if (other$costPrice == null) {
                            break label154;
                        }
                    } else if (this$costPrice.equals(other$costPrice)) {
                        break label154;
                    }

                    return false;
                }

                Object this$truePrice = this.getTruePrice();
                Object other$truePrice = other.getTruePrice();
                if (this$truePrice == null) {
                    if (other$truePrice != null) {
                        return false;
                    }
                } else if (!this$truePrice.equals(other$truePrice)) {
                    return false;
                }

                label140: {
                    Object this$trueStock = this.getTrueStock();
                    Object other$trueStock = other.getTrueStock();
                    if (this$trueStock == null) {
                        if (other$trueStock == null) {
                            break label140;
                        }
                    } else if (this$trueStock.equals(other$trueStock)) {
                        break label140;
                    }

                    return false;
                }

                Object this$vipTruePrice = this.getVipTruePrice();
                Object other$vipTruePrice = other.getVipTruePrice();
                if (this$vipTruePrice == null) {
                    if (other$vipTruePrice != null) {
                        return false;
                    }
                } else if (!this$vipTruePrice.equals(other$vipTruePrice)) {
                    return false;
                }

                Object this$isReply = this.getIsReply();
                Object other$isReply = other.getIsReply();
                if (this$isReply == null) {
                    if (other$isReply != null) {
                        return false;
                    }
                } else if (!this$isReply.equals(other$isReply)) {
                    return false;
                }

                label119: {
                    Object this$type = this.getType();
                    Object other$type = other.getType();
                    if (this$type == null) {
                        if (other$type == null) {
                            break label119;
                        }
                    } else if (this$type.equals(other$type)) {
                        break label119;
                    }

                    return false;
                }

                label112: {
                    Object this$productAttrUnique = this.getProductAttrUnique();
                    Object other$productAttrUnique = other.getProductAttrUnique();
                    if (this$productAttrUnique == null) {
                        if (other$productAttrUnique == null) {
                            break label112;
                        }
                    } else if (this$productAttrUnique.equals(other$productAttrUnique)) {
                        break label112;
                    }

                    return false;
                }

                Object this$productInfo = this.getProductInfo();
                Object other$productInfo = other.getProductInfo();
                if (this$productInfo == null) {
                    if (other$productInfo != null) {
                        return false;
                    }
                } else if (!this$productInfo.equals(other$productInfo)) {
                    return false;
                }

                Object this$unique = this.getUnique();
                Object other$unique = other.getUnique();
                if (this$unique == null) {
                    if (other$unique != null) {
                        return false;
                    }
                } else if (!this$unique.equals(other$unique)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof StoreCartQueryVo;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $uid = this.getUid();
        result = result * 59 + ($uid == null ? 43 : $uid.hashCode());
        Object $productId = this.getProductId();
        result = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        Object $cartNum = this.getCartNum();
        result = result * 59 + ($cartNum == null ? 43 : $cartNum.hashCode());
        Object $combinationId = this.getCombinationId();
        result = result * 59 + ($combinationId == null ? 43 : $combinationId.hashCode());
        Object $seckillId = this.getSeckillId();
        result = result * 59 + ($seckillId == null ? 43 : $seckillId.hashCode());
        Object $bargainId = this.getBargainId();
        result = result * 59 + ($bargainId == null ? 43 : $bargainId.hashCode());
        Object $costPrice = this.getCostPrice();
        result = result * 59 + ($costPrice == null ? 43 : $costPrice.hashCode());
        Object $truePrice = this.getTruePrice();
        result = result * 59 + ($truePrice == null ? 43 : $truePrice.hashCode());
        Object $trueStock = this.getTrueStock();
        result = result * 59 + ($trueStock == null ? 43 : $trueStock.hashCode());
        Object $vipTruePrice = this.getVipTruePrice();
        result = result * 59 + ($vipTruePrice == null ? 43 : $vipTruePrice.hashCode());
        Object $isReply = this.getIsReply();
        result = result * 59 + ($isReply == null ? 43 : $isReply.hashCode());
        Object $type = this.getType();
        result = result * 59 + ($type == null ? 43 : $type.hashCode());
        Object $productAttrUnique = this.getProductAttrUnique();
        result = result * 59 + ($productAttrUnique == null ? 43 : $productAttrUnique.hashCode());
        Object $productInfo = this.getProductInfo();
        result = result * 59 + ($productInfo == null ? 43 : $productInfo.hashCode());
        Object $unique = this.getUnique();
        result = result * 59 + ($unique == null ? 43 : $unique.hashCode());
        return result;
    }

    public String toString() {
        return "StoreCartQueryVo(id=" + this.getId() + ", uid=" + this.getUid() + ", type=" + this.getType() + ", productId=" + this.getProductId() + ", productAttrUnique=" + this.getProductAttrUnique() + ", cartNum=" + this.getCartNum() + ", combinationId=" + this.getCombinationId() + ", seckillId=" + this.getSeckillId() + ", bargainId=" + this.getBargainId() + ", productInfo=" + this.getProductInfo() + ", costPrice=" + this.getCostPrice() + ", truePrice=" + this.getTruePrice() + ", trueStock=" + this.getTrueStock() + ", vipTruePrice=" + this.getVipTruePrice() + ", unique=" + this.getUnique() + ", isReply=" + this.getIsReply() + ")";
    }
}


